public class digui {
    public static int jiecheng(int a){
        if(a==1){
            return 1;
        }else {
            return a*jiecheng(a-1);
        }
    }
    public  static void main(String[] args){
        System.out.println(jiecheng(10));
    }
}
